/**
* Copyright (C) 2018-2020
* All rights reserved, Designed By www.yixiang.co
* 注意：
* 本软件为www.yixiang.co开发研制，未经购买不得使用
* 购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
* 一经发现盗用、分享等行为，将追究法律责任，后果自负
*/
package co.yixiang.modules.auction.service.dto;

import co.yixiang.modules.auction.domain.YxAuctionOrder;
import co.yixiang.modules.auction.domain.YxAuctionProduct;
import co.yixiang.modules.user.domain.YxUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* @author hupeng
* @date 2020-09-15
*/
@Data
public class YxAuctionRecordDto implements Serializable {

    /** 防止精度丢失 */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    private Integer isMax;

    /** 拍卖商品id */
    private Long auctionProductId;

    /** 拍卖价 */
    private BigDecimal price;

    /** 封顶价 */
    private BigDecimal topPrice;

    /** 手续费 */
    private BigDecimal serviceCharge;

    /** 一级分佣0-10 */
    private Integer firstCommission;

    /** 二级分佣0-10小于一及分佣 */
    private Integer secondCommission;

    /** 抢拍开始时间 */
    private String startTime;

    /** 时间段 */
    private Integer timeId;

    /** 状态0等待补拍1补拍中2待确定3补拍完成 */
    private Integer status;

    /** 转拍用户id */
    private Long userId;

    /** 是否已被购买0否1是 */
    private Integer isBuy;

    /** 父抢拍单id */
    private Integer parentId;

    private Integer payType;

    private Integer type;

    private String startDate;

    private YxAuctionProduct yxAuctionProductDto;

    private YxAuctionOrder yxAuctionOrder;

    private Long times;
    private Long payId;


    private String sTime;
    private String eTime;
    private BigDecimal buyPrice;
    private BigDecimal toBuyTime;
    private String payTime;
    private String qpStartTime;


    /**
     * 买家信息 || 卖家信息
     */
    private String realName;
    private String nickname;
    private String phone;
    private String confirmVoucher;

    /**
     * 收款码及付款码
     */
    private Integer bindZfb = 0;
    private String zhifubaoName;
    private String zhifubaoCode;
    private Integer bindWx = 0;
    private String weixinName;
    private String weixinCode;
    private Integer bindBank = 0;
    private String bankRealName;
    private String bankNum;
    private String bankName;
    private String bankCode;

    /**
     * 我的买单 我的信息
     */
    private String myRealName;
    private String myNickName;
    private String myPhone;

    /**
     * 我的卖单 购买用户信息
     */
    private String buyRealName;
    private String buyNickName;
    private String buyPhone;

}
